package com.songyuquan.webcs.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * 后台样式 WebMVC配置
 */
@Configuration
public class BackWebConfig implements WebMvcConfigurer {
    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        String backPath = "D:\\thesis\\code\\webcs-syq\\src\\main\\resources\\static\\back\\";
        registry.addResourceHandler("/back/**").addResourceLocations("file:" + backPath);
    }
}
